"use strict";

// content :ctx+'/bus/vaccineManage/form?id='+id,
function vaccineEntAdd(id){
    var title = "疫苗生产企业"
    if(id!=""){
        title = "修改"+title;
    }else{
        title = "新增"+title;
    }

    layer.open({
        type : 2,
        fix : true,
        skin : 'self-def', /* 自定义按钮样式 */
        anim : '5', /* 动画效果 */
        move : [ '.layui-layer-title', true ],
        title : [ title, 'font-family: Arial Negreta; font-size:20px; font-weight: 700; color:#33A5E7;'],
        offset : [ '30px' ],
        area : [ '620px', '415px'],
        maxmin : false,
        closeBtn : 1,
        content:  ctx+'/bus/vaccineEnt/form?id='+id,
        btn : '保存', /* 自定义按钮事件 */
        btn1 : function(index, layero) {
            var innerObj = window[layero.find('iframe')[0]['name']];
            innerObj.$("#inputForm").submit();
            return false;
        }
    });
}
function typeChange(){
    var vaccineTypeName=$("#dictList").find("option:selected").text();
    var vaccineTypeCode=$("#dictList").val();
    $("#vaccineTypeName").val(vaccineTypeName);
    $("#vaccineTypeCode").val(vaccineTypeCode);

}

